<?php echo $header; ?>
<div id="content">
   <div class="breadcrumb">
   <?php echo $this->breadCrumbs(); ?>
  </div>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/product.png" alt="" /><?php echo $_['heading_title'];?></h1>
	   <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $_['button_save']; ?></a>
	   <a href="<?php echo UA('article/article'); ?>" class="button"><?php echo $_['button_cancel']; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action;?>" method="post" id="form">		
        <table class="form">
            <tr>
			  <td><span class="required">*</span> <?php echo $_['text_title']; ?></td>
			  <td><input type="text" name="title" value="<?php echo $vo->get('title');?>" size="80" data-rule-required="true" />
			  </td>
            </tr>
            <tr>
            	<td><?php echo $_['text_category']; ?></td>
            	<td>
            		<select name="category_id">
            			<?php echo form_select_option($categories, $vo->get('category_id'), false, 'category_id', 'name');?>
            		</select>
            	</td>
            </tr>
            <tr>
			  <td><?php echo $_['text_meta_keywords']; ?></td>
			  <td><textarea name="meta_keywords" rows="2" cols="80"><?php echo $vo->get('meta_keywords'); ?></textarea></td>
            </tr>
            <tr>
			  <td><?php echo $_['text_meta_description']; ?></td>
			  <td><textarea name="meta_description" rows="2" cols="80"><?php echo $vo->get('meta_description'); ?></textarea></td>
            </tr>
            <tr>
              <td><?php echo $_['text_image']; ?></td>
              <td valign="top"><div class="image"><img src="<?php echo thumb($vo->get('image')); ?>" alt="" id="thumb" />
                <input type="hidden" name="image" value="<?php echo $vo->get('image'); ?>" id="image" />
                <br /><a onclick="image_upload('image', 'thumb', '<?php echo $token;?>');"><?php echo $_['text_browse']; ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('#thumb').attr('src', '<?php echo thumb(); ?>'); $('#image').attr('value', '');"><?php echo $_['text_clear']; ?></a></div></td>
            </tr>
            <tr>
			  <td><?php echo $_['text_summary']; ?></td>
			  <td><textarea id="summary" name="summary" rows="3" cols="80"><?php echo $vo->get('summary'); ?></textarea></td>
            </tr>
			<tr>
			  <td><span class="required">*</span> <?php echo $_['text_content']; ?></td>
			  <td><textarea name="content" id="content1"><?php echo $vo->get('content'); ?></textarea></td>
            </tr>
			<tr>
				<td><?php echo $_['text_top'];?></td>
				<td>
					<select name="top">
					<?php echo form_select_option($_['option_yesno'], $vo->get('top', 0), true);?>
					</select>
				</td>
            </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script> 
<script type="text/javascript"><!--
CKEDITOR.replace('content1', {
	filebrowserBrowseUrl: '<?php echo UA('common/filemanager'); ?>',
	filebrowserImageBrowseUrl: '<?php echo UA('common/filemanager'); ?>',
	filebrowserFlashBrowseUrl: '<?php echo UA('common/filemanager'); ?>',
	filebrowserUploadUrl: '<?php echo UA('common/filemanager/upload'); ?>',
	filebrowserImageUploadUrl: '<?php echo UA('common/filemanager/upload'); ?>',
	filebrowserFlashUploadUrl: '<?php echo UA('common/filemanager/upload'); ?>'
});
CKEDITOR.replace('summary', {toolbar:'Basic'});
//--></script> 
<?php echo $footer; ?>